package ua.edu.nuos.jeetraining2012.automator.translator.vo;

import ua.edu.nuos.jeetraining2012.automator.translator.vo.element.bpmn2.Processes;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author Timur Yarosh
 *         Date: 03.06.13
 *         Time: 21:01
 */
@XmlRootElement(name = "definitions")
public class Bpmn2Entity {

    private Processes processes;

    @XmlAttribute
    private static final String id = "definitions";

    @XmlAttribute(name = "targetNamespace")
    private static final String targetNamespace = "http://activiti.org/bpmn20";

    @XmlAttribute(name = "xmlns")
    private static final String xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL";

    @XmlAttribute(name = "xmlns:activiti")
    private static final String activiti = "http://activiti.org/bpmn";


    public Processes getProcesses() {
        return processes;
    }

    @XmlElement(name = "process")
    public void setProcesses(Processes processes) {
        this.processes = processes;
    }
}